package com.exam.paper.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName : Wrong
 * @Description : 错题本
 * @Author : WHB
 */

@Data
@Table(name = "exam_wrong")
public class Wrong {
    @Id
    @KeySql(useGeneratedKeys = true)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sid;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date creat_time;
}
